<h1>List packing_list</h1>

<ul class="actions">
	<li><?php echo CHtml::link('Create packing_list',array('create')); ?></li>
	<li><?php echo CHtml::link('Manage packing_list',array('admin')); ?></li>
</ul><!-- actions -->
<?php 
	$this->widget('zii.widgets.jui.CJuiAccordion',array(
		'panels'=>array(
			'Create new shipment packing list'=>$this->renderPartial('_create',array('model'=>$model),true),
		),
		'options'=>array(
			'collapsible'=>true,
		),
		'id'=>'create_accordion',
	)); 
	$cs = Yii::app()->ClientScript;
	$script = "$('#create_accordion').accordion('activate',false);";
	$cs->registerScript('accordion#script',$script);
?>
<?php 
	$this->widget('zii.widgets.grid.CGridView', array(
    	'dataProvider'=>$dataProvider,
		'ajaxUpdate'=>true,
    	'columns'=>array(
        	'date',
        	'detail.subject',
        	'detail.shipping.cname', 
			'detail.port.cname',
    	),
	));
?>
